package com.castle.fortress.admin.demo.controller;

import org.springframework.web.bind.annotation.*;

/**
 * hello demo
 * @author castle
 */
@RestController
public class HelloDemo {

    @GetMapping("/demo/callbackGet")
    public void getString(@RequestParam String body){
        System.out.println("callbackGet:"+body);
    }

    @PostMapping("/demo/callbackPost")
    public void postString(@RequestBody String body){
        System.out.println("callbackPost:"+body);
    }

    @RequestMapping("/demo/callback")
    public void callbackString(@RequestParam String param,@RequestBody String body){
        System.out.println("callbackString:parm:"+param);
        System.out.println("callbackString:body:"+body);
    }
}
